<!-- 快速提问 -->
<template>
	<view class="container">
		<image class="img btn-transition-scale95" src="/static/images/index-customer/quick-ask.png" mode="widthFix"
			@click="handleNavTo()">
		</image>
	</view>
</template>

<script setup>
	import { useUserStore } from "@/store/user.js";
	const userStore = useUserStore();
	
	const handleNavTo = () => {
		if (!userStore.token) {
			userStore.SET_SHOW_LOGIN_PANEL();
			return;
		}
		
		uni.navigateTo({
			url: '/pagesC-post/ask/index'
		});
	}
</script>

<style lang="scss" scoped>
	.container {
		padding: 20rpx 25rpx 0;

		.img {
			width: 100%;
			height: 200rpx;
		}
	}
</style>